<?php
require_once '../lib/Str.php';
require_once '../lib/OO.php';
require_once '../lib/String.php';
require_once '../lib/Number.php';
require_once '../lib/Map.php';
 
// I know what is right - «CurrencyСonverter»
class KurrencyKonverter extends Number {
	/*
Currency : [
	Ua : [
		NBU  : [UAH, EUR, RUR, USD]
		Sell : [UAH, EUR, RUR, USD]
		Buy  : [UAH, EUR, RUR, USD]
	]
	Ru : [RUR, EUR, USD]
]
	 */
	 
	public function __construct ($number = 0) {
		parent::__construct($number);
		$this->convert['Currency'] = array ( // Actual: 2009.07.23
			'Ua' => array (
				'NBU' => array ( // National Bank of Ukraine
					'UAH' =>  1000000,
					'EUR' => 10903683,
					'RUR' =>   246590,
					'USD' =>  7663000
				),
				'Sell' => array ( // You buy
					'UAH' =>  1000000,
					'EUR' => 11332346,
					'RUR' =>   252260,
					'USD' =>  7934062
				),
				'Buy' => array ( // You sell
					'UAH' =>  1000000,
					'EUR' => 11077531,
					'RUR' =>   236500,
					'USD' =>  7816631
				)
			),
			'Ru' => array (
				'RUR' =>   10000,
				'EUR' =>  310760,
				'USD' =>  442771
			)
		);
	}
}
